home *** CD-ROM | disk | FTP | other *** search
- Path: nwlink.com!usenet
- From: Teresa Reiko <tjr19@mail.nwlink.com>
- Newsgroups: comp.lang.c
- Subject: Re: Tradition or what?
- Date: 2 Mar 1996 00:48:22 GMT
- Organization: Tenbyte Software
- Message-ID: <4h85sm$lm0@texas.nwlink.com>
- References: <4g0elg$mdr@redstone.interpath.net> <4h0bbo$c0q@fohnix.metronet.com> <4h7ce0$ojd@news.interpath.net>
- NNTP-Posting-Host: port48.annex4.nwlink.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
-
- softbase@mercury.interpath.net (Scott McMahan - Softbase Systems) wrote:
- >Stan Milam (milam@fohnix.metronet.com) wrote:
- >
- >: : Steve Maguire ... Writing Solid Code
-
- >This is the first bad review of the book I've ever seen. When does he
- >violate Standard C?
- >
- >Maguire's argument that the standard library is one of the worst
- >designed interfaces ever seen is very valid -- it happened accidentally
- >over years, with no rhyme or reason, and is filled with pitfalls.
- >Consistency in the stdlib would have been nice, if there was some way
- >it could have been achieved without breaking code. The bad part is
- >people use it as a model for new software!
-
- In this book and others, notably 'Code Complete', these programming
- guides published by Microsoft Press, it is evident why Microsoft put
- so many bugs in Windows 95. Here are the three worst Microsoft
- coding rules, in my opinion at least:
-
- Every line of code must contain a comment.
- Any number greater than 2 must be a named constant.
- No procedure may be longer than 25 lines.
-
- If you follow these rules, you can be sure to write buggy, inefficient
- code that is difficult to revise and will generally look 'dirty'.
- Of course, if this is your intent, that's OK, but...
-
- ----------------------------------------------------------------------
- Teresa Reiko Chief Programmer, Tenbyte Software tjr19@nwlink.com
- ----------------------------------------------------------------------
-
-
-